var mongoose = require("../db");

var PetSchema = new mongoose.Schema({
  phone: Number,
  nickname: String, //定义一个属性content，类型为String
  sex: String, //定义一个属性content，类型为String
  breed: String, //定义一个属性content，类型为String
  birth: String, //定义一个属性content，类型为String
  gohome: String,
  ster: String,
  reply: String,
  // 不输出版本号
}, { versionKey: false });

const Pet = mongoose.model('pets', PetSchema); //将该Schema发布为Model,Pet就是集合名称

module.exports = Pet;
